Better formatting for the compute_stats job and now we can output to csv