Only change file value when file has changed.