RepeatExecution class more generic.