Extra features

Hi, I like your script and wanted to run it at my environment. 
But before it could work at my environment, I had to make some adjustments, but I also wanted to keep most of the current behavior in tact.

I'm sharing the changes I've made and hopefully you can benefit from them as well. Please let me know what you think of them?
I'm looking forward to your reply.

Kind regard,

Ivo