Added possibility to switch between GUI and console output