Changed to write file to .txt instead of .csv