Implements the generator function.

Way to go, brain.