Handles complex merge sequences