Added a addInput and an adding state