Added min depth of tree