Thanks for your help guys. It will take me some time to understand exactly what you suggested to fix the function (I'm still a newb at this) but thanks for your help. I'll keep you posted on the updates :)