Changed smoothing logic to reduce influence of blank pages.