Improve matrix.