Added a repeatForever property and a bounds check on repeatCount to try to prevent unexpected integer overflow behavior.