Merge layer functionality