HAS_GUI is global variable now