Hacked out all Qt/GUI code in a very ugly way