Cleaning up tree.