Refactor Hierarchy interface. Add new methods to it.