Added new input_text function