Added selectedInput.