Changed to create the file if it does not exist