Further work on implementing data rate calculations for the serial port.