Ok it works

Hilariously bad. Shameful and stupid. But it works. I'll go through
everything with a bulldozer at a later point.