Sets up stack