First draft of set copying. Related to issue #65.