Added the hook