Peak frequency calculation is added