Add function to find two peaks.