Added initial code for checkpoints.