Add service to calculate ranking and break ties