Okay, having implemented your code I've got a saving of three seconds with 2755 hashes processed. My code took 2 mins 33 secs to process, whereas yours took 2 minutes 30 - that's 18.3 hash conversions per second! This is a small sample file so I'm sure that in the real world application of this the savings will be very significant. Many thanks for your help. Kind regards, John.