Debugging Plot_Waveform()