Make hook global.