Added waveform selection in spike cache.