Setting up the stack