Added JSON and CSV output options to the stats.