Separated PeakDetector into PeakDetector and DomainPredictor