Use check_output instead of call