Implement a stable diff