Thanks Les, I will go through it and post a updated working function.

Thanks