Sampling now working