Only do resetBaud if device is specified. Also, use [[]] notation.