Implemented dominant frequency.