Changed from write.csv to write.table as needed by the project.