Added some interface for getting a hierarchy