Add methods to get iterators to access entities.
Modify constructor.