...Okay, I must have made a mistake when copy/pasting, so here it is again: https://pastebin.com/wWv49mgG
Sorry about that!
That works! Thanks for your help!