Added cloneSet procedure. Work in progress.