Create check_while