Finishing touches on converting output to CSV.