How do they know which direction is advance or retreat?