Modified frequency calculation to be more simple.
Protocol change