Implemented GUI.