Added loops generation to expressions generation.