Add support for Lua mode.