Ok, thanks a lot for the help
Glad to finally get this working. I will work on optimizing my code further.. probably would explain why I couldnt get this working trying it myself, my array kept on getting erased, now I see why.
As for only having that line of code in one place, I believe I need to keep it in the 3 places, unless I cut out one of the two functions that do the same thing. Those two are setup totally different then the toggle function by reading the registry at the start to check if the script is turned on, and toggle switches between on and off.
Again, thanks for the help