Added ability to copy groups