Added the rank selection feature