Added diff and revert operations.