Prepare to prune the tree