Moved leg changes signal to UAS for robustness.