Added some tree methods