Moved unionSet for generating new ufds outside the normal unionSet function