Added publish subscribe for checkpoints.

Still need to add in images.