Add QoS and flags management