Add get value function.