Refactored stack adjustment to occur in transaction