*Slaps forehead* of course, that's a much better change! I also saw that a, b and c are returned as indices further down, and it makes sense for those to be the v3 indices, not the array indices.