Made XPC-using check as functions instead of methods.