Block code in ranking tool