Added a method to add metadata in catalog.