Very nice modification, thank you! My environment only has a couple servers, so I hadn't considered the situation you described. I'm probably going to adapt your splice method into my code. I've adapted your splice method into my production code. I left the snippet unmodified though, just to show another method.
---
It's all fine and dandy until someone has to look at the code.