Andy Thanks for such an efficient reply. I forgot to say i was using the 16c74 so I have hundreds of free registers. Better get back to the coding. Thanks Tim