Added option for limiting the max number of cycler repeats

Implementation of Issue #1