Write to csv file has been added