WIP - abstracting DomIndex to allow atlernate implementations. Passing.