Fixed checkpointing.