Added better 2D box sampler.