Added GUI logic debugging