Use sf instead of 1 - cdf