Adds load_file functionality