Use map over each. Avoid using defer().