Change matrix implementation.