Added control for setting the downsampling level applied