- Improved compare_rank.