Added function gizmo.merge