Got rid of a copy of a vector that took a lot of time