Tweaked Lua to work