Changes in stack and matmult