Changed the way new files are created.