Added weighted frequency.