Added STATS command. Patch by Ville Räsänen.