Better handle circular references.
Improve stack parsing.
Update example.