Checkpoint macro