Adapt to new LuaFAR API.
Adapt to new LuaFAR API.