Add setInput functions