Add support for LUA mode