Continued work on rewriting Lua interface, to make it more usable.