I appreciate the pointers, but I'm definitely not a beginner anymore. This script is like 4 years old lol.
Oops. Hopefully it helps others though!