Fix for new downsample function signature.