Combine Agent#synchronize and Agent#flush