Finished implementing waveform plotting.