LuaJIT compatibility

Made depreciated arg variable modifications for LuaJIT compatibility