allow adjustment of sampling rate via preferences