Changed cpidFreq to use dicts.