Added a slightly faster IndexOf method