Implement the CSV output