Added some functionality to the GUI.