Support custom hooks and templates.