Added support for exporting to lua.