Adapt histogram code to find the PDF for just full successes