Thanks, I'll give the reset flags a try latter. I can't use defines as the baud rate needs to be user configurable in the field.