Added subtree removal functions.