Generic value fetcher.