Add partial support for varinputs/varoutputs