Adding functions to create metadata