Tweaking things to make it work with https://github.com/kaihendry/sg