Changed an std::list to an std::vector