Checkpointing templating work