New code for setting the rate. Tested at 125kHz.