Updated the files only if it is necessary.