I’ve now posted my script as a new topic as his was getting a bit long winded. Have a look at
Alternative to Safepoint