Checkpoint before adding cap-weighting index code