Added rankStrings and modified maxRank