Properly displaying waveform