Update set functions

We do not need to use method with pointers, since the basic structure
is map.