Use the slightly cleaner addHook, rather than wrap.