Properly store values in data attribute of vector & now return a vector with keys