Improved the Lua system.