Changed all instances of array to pmatrix.