MDL-31989: Modified iterator for lesson module