Output results into CSV file