Another one performance change in frequency.py