Properly adjust nodes while walking down the tree.