You should find that the other code that I posted is much faster than the code that you have just amended