Implement the serial port