Added some code to Diff.