OP if you're the author, FYI first link to previous post ('this is a follow-up to') is broken:
https://mkhan45.github.io/2020/06/12/Lua-integration.html
Edit: Ah, 'Lua' should be lower-case.
https://mkhan45.github.io/2020/06/12/Lua-integration.html
Edit: Ah, 'Lua' should be lower-case.