Introduced additional fields in nodes to indicate parent node, level in the hierarchy, etc.