Add rewrite flush