Added getMatrix()