Getting the stack to work