Storing results in CSV format