Thanks guys,
I set it as a local variable and all seems to be running smoothly.