Use check_command.