Updated to Factorio 2.0, removed the flib dependency and used built in scripting. More for personal use now. Needs cleaning up, but it works.