Added new input_submit function