Changed the interface to the Lua wrapper.