Changes toHierarchy() to more user-friendly