Add hooks module to prevent circular dependencies