Glad it worked. Wish there was an easier way.

And you're probably right about that typo. It uses the $loopcount parameter, but without that -n 1 in there it's doing 4 tries per loop instead of just the one. Good catch.