Rewrote set_parameters / MatrixChars now new style