My luck, I can’t replicate the problem. But after looking at the code again, the $Remote variable was in the wrong place. Works when I moved it up a couple of lines.

I need a vacation, some time off, need to relax a little. Sorry, for the post.