Make generic load_files method