Changed to prevent buffer flushing when redrawing UI. Commented out debugging print.