Running patterns X amount of times

Something like that, not tested.