Implemented indexed fetching of values.