Moved vector to global private var
Tried to clean up memory