Add matrix state