Merging elements together