Setting Get metadata method to return both an interface as well as an error to remove panic.