Add ability for swapping to repeat.