Working on the sampling