Got the CSV output working!!!