Functions to walk through the stack beginning at the tail.