Added flag for whether the arm is swinging.