Matrix allocation more-or-less working.