Improved frame sampler.