Add and use prompt stack.