This is for @Fablemaker, they needed some coding help.
Note to @Fablemaker: I drastically altered the scripts, so you might just want to replace this with your old copy, if you haven't added anything new yet :)