Adding basic support for serial port