First attempt at stack-size checks. Really more a stack-limit calculation that fails when the current stack size goes below 0. Unfinished, and the method needs work..