Added methods to use Entity Metadata