Hi George thanks for the reply,
I look at the files I developed and they always have the number 1 at every 7th location so in adapting your code I probably messed something up during the writing phase. Otherwise yes perhaps I could look into that idea if I had a way to count the frames.