OPT: generate_output_file: MAJOR CHANGE TO ARGUMENTS