First stab at generating the CSV file