Change on repeat function