Made ranking tables work