Replace the ugly FindValue method with STL-like find methods.