Changed model arrays to vectors