Hotfixed my derp on miscalculating matrix inverse. Need to test Transpose later and probably optimize inverse call