Update sample rate code