Working on an algorithm to merge different revisions.