When to checkpoint