Added foreach as a variable producer (like assignment), seems to work flawlessy