Added a control of input.