Added minimal smoothing to avoid zeros.