Removed set generating function