Added get_value function