Some Code for DPercent Estimator