Changed to check_call