Finally got the script hook right