Implemented fast-forward merging.