ForEach changed to foreach so that it can compile in PCL profiles