Downsampling implemented