Yield variables to the block properly