Moved junk around so it should work now (including making a billion things static D; )