Fixed the ranks, now can adjust ranks to fit within a given range