Changed the way it prints out to csv file