Introduce push/pop and thread local stack.