Started handle_cmd_input.