Change upsample to resample.