Cleaning up Matrix-chain