Replace do_check with run_command