Added sampling rate support