Here we were creating a vector on each iteration.