Add some debuging line to hooks