Breaking up detHistPeak to be more reasonable