Merge generation script