Updated path component to add waypoint at index