Adding the code to generate the files.