Adding additional check to see if the file has really changed