Update code for rank checker