Script amended