Final version of this script before removal.