Adding Support for Matrix Stacks