3rd change to enable CHECKPOINT through input variables