Addes header variables as TParameter and TNamed. Properly accounts for multiple channels in use