Updated the way the files are created