Resetting the files to a constent state