Finish sampler uniform optimization