Ah crap, that's probably why I wrote it the way I did initially. But what did you mean then? My idea was that you make sure the number of files in the vector is the same as the number of items.