Did some more porting, but probably giving this up in favor of my custom framework.