Update to stack implementation.