Added basic diff-creating and diff-restoring mechanism.