Add SetValue to segment so the values in the segment can be set as well. Cooresponding tests as well.