Working diff and revert functionality.