thanks so much for your help, it makes sense now and I feel a bit stupid! Trying to write a function to get rid of dependancy on framerates but inside it calculating the frame rate ops: ... Anyway thanks a lot, will adjust the program accordingly and let you know how it goes.

Thanks,
Andrew Starnes