Wrote capture gen