Added treeNotify functionality