Combined QoS functions into a single file