Added set_value function