Output to CSV file; commented code