Splitting the process_data_file into smaller more well defined functions.