Added serial port logging mode