Initial implementation for set type.