Add varinputs/varoutputs support