Add percentiles stream function