Sorry, I don't mean to sound degrading or attacking in any way. I'm just trying to be cautious for the other user's on this forum who will potentially use the scripts you make. @Swizzbeat posted the solution for you, again I apologize for the hassle but you can never be too cautious.
Best of luck