This method is for waste matrices, but can be applied to other matrices.