Modified results output to csv files