Changed output file to comma delimited