Added functionality to draw arrows.