Added globalId-based Lua scripting and script parameters.