Edit hook.c