How to generate the files