Added some GUI functionality.