Add flush generation