First implementation of GUI.