Removed dependency on the imported Set class