Initialize before / after hooks globally