Slow code to get user rankings.