Add support to create output file containing all the stats.