Made Sampling functions static