Adding token hook replacement structure