Thank you Laserlight, I didn't understand but that makes sense, going through each element of the array and comparing, instead of just trying to paste the code into another function, when I get home I'll implement it that way.