Added check to see if there was an actual change before saving.