Put sleep statements into the code so we can probe the number of waypoints at various points