Limit sub-tree depth. Added option to ommit the root node of a sub-tree.