Added the entity manager.