Made a change to the ranking algorithm