Added submatrix feature