Use foreach where possible.