Added patch merging.