Add improved pattern merge operator.