Implemented additional tree functions.