Fix Lua errors
Fix Lua errors
Remove unused variables