Variable reuse, and better use of stack with complex cases.