Removed duplicate Tree code.