Commit addArrows function