Improve hook engine.