Add support for scrub hook.