Added cdf function