Move create files to generate method