Added another get-value func for improved code reuse.