Correct stack stability functions.

We now have the ability to determine if the stack is stable, and if it
is,