Add flush method. Only supports immediate flush, no delay.