Added ability to revert changes.