As to my original question, I found a way around it, by removing the UDF in the script that is called multiple times and placing them in a seperate file that is then included, I have no problems.
_________________________
Today is the tomorrow you worried about yesterday.