Added debug capabilities to GUI