Maintain header information in matrix structure