Use for instead of foreach (much faster)