Added IndexOf implementation.