Added some minor tweaks to serial_sync and serial_util.