Added ranking to custom_ranking