Starting work on improving efficiency of waveform plot.