Added validation of samplingRate value