Added input_history snippet