BUG: Add and correct stats in stats.csv output