Merge codes