Adding generic setter.