The boolean should be fairly simple to change to a flag. I can do that if wanted. With regards to the remote/local logic I'm not sure how it's supposed to be, I just kept it as it was (or tried at least).