Massive changes for new GUI and new multithreading additions. Currently
completely half-broken/unstable!