Thanks for the help....I really appreciate it. I knew my code was a bit slapped together and this is a great improvement.
I finally heard back from the developer that created the IRs to begin with and it appears that their IRs are XOR obfuscated. That would have been good info to know ahead of time. Very frustrating.