Adjusted for updated vector library