Update sg_hooks.lua