Added back a new version of an old script that I deleted a long time ago