Tidying up command handling, implemented /stats self.