Switched to using serialport