Using std::vector instead of a plain array for hostData.