Add a central Diff function