Extracts all entities.