Yeah, your suggestion looks legit. Thanks!

I haven't touched this code in a few decades. I'm glad you're finding some utility from it!