Set context in "for each" calls