Modify pascal_yield to remove issues as discussed.