https://devhubby.com/thread/how-to-create-a-lua-module-that-interfaces-with-a