Export add_line_to_history