Anyway, I implemented the function, seems to work now nicely. Thanks for the tip, this is certainly safer and more to the point.