Add a check to ensure that patching actually happened