Added logic to pick captcha order