Added parent property to each node.