The halteres move as the flight direction changes, and prevent the insect from losing its direction.