Added function to find a given entity type