Removed commented out getHierarchy function.