Changes in ranking code