Began code for loading metadata files