Altered the GUI app to include some more logging