Finished load_file func