Swapped endCal and addPoint