Finished most of the implementation for LuaScript