Basic support for iterating through generations.