Added flag for calculations and updating motors.