Finished Part VI. Start of GUI stuff.