Added minor functionality to MatrixWithHeaders