Adding simple, conservative merge optimization.