Still working on updateRanks