Implemented basic min frequency-ranked heuristic for QoS.