The code works as I'm currently using it on my other scripts. How did you use it? Can you give a sample of your code?