Added support for rootEntities