Automatic checkpoints