Converted script to CSV instead of tab-delimited to handle data better when opening in Excel