This version seems to be buggy, the code I have on the repo probably isn't the newest code I have; I have to go looking through my backups to verify which is the most up-to-date version. I've included a sample script and settings file.