Stack implementation for back tracing of tags.