Update the tree