Added EntityManager class.