Allow to configure sample rate