Create this vector outside the for loop. The purpose is to keep from reallocating it all the time.