Program exits once it has reached the first item it read since the last scan.