Changed output file suffix from print to .txt