Added functionality required for arrow drawing