Added/fixed frequency.py