Added conditional_operator to scan()