Add config module, and direct all uses of sample rate to the default defined there