Original version of TreeManager