Optional way to disable hooks