Added support for Lua scripting.