Specifying checkpoint frequency

You should specify checkpoint frequency in your program so that you can easily modify it when the frequency needs to be adjusted.

You can do this by: