Add deepest.rank function