Some crazy matrix stuff, trying to isolate test.