Reworked results statistics generation, making it its own subcommand.