Adapted all methods that access metadata to work for loaded files as well as newly created history objects