Generate output files