Flexible merge automator