Implemented getInputs logic.