Updated Lua code sample