Implemented merging (very very glitchy)