Better logic formulation for user specification of whether resampling is allowed.