Detects peak frequency