Folded logic to handle EOF and "start of a new scan" in same leg of code. Forces a log of information if customer doesn't turn on all the flags.