Working with serialport instead of serialport2 (deprecated)