Saving only distinct edits