Added comment explaining use of yield