Add use of flush_gen.