Added serial flush to guard against loss of sync.