Change the output to a csv file