Add re-sampling option