Switching for in loops to forEach iteration

Referencing into the objects is a bit gross during iteration.