Changed getRankValue, getRankType, getRoundNumber and getRoundType to use regex instead.