Added logging to the UI.