Added in some tree operations