Working on resampling code debugging printouts.