Added the add_line function