Added a rank_by config option