Changing data structure from map to vector. Don't know why it isn't
working here.