Maybe I've missed it, but I can't seem to find where you write the metadata into the primary, filelists, and other metadata files