increased speed of the repeat script.