WIP of a new Lua-based version.