Update metadata reading and file loading.