Changed IPR to Dom to generalize data structure.