Adding search, returs search value on success
Now returns index of value if found