Debug logging
Fixed the finalize function's deduplication removing low percentiles