The merger logic

The merger logic