Which American leader was instrumental in rallying troops after setbacks?