Changed all occurences of vector to array