Support for custom hooks