Add debug statements to GUI