Added simple handler for serial ports