Added set serialization.