For serial communication on Windows/Linux.