Handle entity types