Added simple iterator/generator implementations.