Added hooks

Added hooks so the lua wont error so much