Arrayinput + cleanup inputlogic.