Continued rewriting Lua interface.