Added logging to the GUI.