Implement the serial port unit