Added ability to use callbacks for kv_fetch