Auto motor control