Redo the setInput function