Vectorize script