It's going to be non-trivial to upgrade because the scripts contain code that will break in later (v4) releases.

There seems to be some link to when a user is logging on with cached credentials...