Add more debugging for serialport