This comment doesn't make sense, at least in this location. What are cur and chkpt?