Modify function to test label merging
Modify existing function to test simltaneous merging of multiple labels.