Added missing parameters to checkCapability calls.