Move stop statements to motors