Changes to PitchDetection