Wrote code to turn samplerate down if too unstable, but, the rate never seems to get stable. May be better when using actual sampling hardware.