Factored out flush call.