Added frequency autocorrection