Add a patch check callback.