Checking if the data was changed