Added foreach loops.

Signed-off-by: Oskar <oskar.warme@gmail.com>