Updated the two scripts.