Adds persist edits functionality