Import export of matrices improved.