Add output_to_file(), comment out unneeded function.