Implemented More Tree functions