Adding checkpointing to RepeatStream