Changed vector datatype to a struct.