animating texture through script

I am trying to change the texture of a plane with 200 image textures.
My issue is that if i put a speed value the image will start jittering for some reason.
It works well with speed 0 only.

IEnumerator AnimateVision()
    {
        
        for (int i = 0; i < BaseMap.Length; i++)
        {
            
            m_Renderer.material.SetTexture ("_BaseMap",BaseMap*);*

m_Renderer.material.SetTexture ("EmissionMap", BaseMap*);
yield return new WaitForSeconds(Speed);
if (i == BaseMap.Length - 1 )
_
{*

i = 0;
}
}

}

I was able to solve it without for loop like this and the texture animation is looping now :)…

IEnumerator Animation()
    {
        int i = 0;
        float time = 0;
        while (i < BaseMap.Length)
        {

            m_Renderer.material.SetTexture("_BaseMap", BaseMap*);*

m_Renderer.material.SetTexture("EmissionMap", BaseMap*);
time += Time.deltaTime / Speed;
if (time >= Speed)
_
{*

i = i + 1;
time = 0;
if (i == BaseMap.Length - 1)
{
i = 0;
}

}
yield return null;

}

}