Advanced merge