Updated algorithm to restrict the effective rooting depth; algorithm was not working properly because the in addition to the effective rooting depth the normal rooting depth must be restricted, to