Added functions to split records by unique value and load and process file