Changed sampleRate to sampleInterval.