Add deph support in Tree