The function frequency_correction was implemented