Changed matrix multiplication