Andy: Sampling now has nested loop.