Moved GUI printing to main window.