The person who re-wrote this script broke it, reverting.