Modify prehook slightly