Ds implemented as Generator.