Modified the serial port interface.