Update frequency_new.py