Beginning of merge interface code