Removed GUI stuff. Not done.