Handling nodes and their hierarchyΒΆ