Added spectrogram function