Changing all accesses to private variables to metadata()