More LUA scripting rework.