Added method to get metadata from models