Some minor cleanup of the stats command.