and was appointed Special Assistant to the President. He worked primarily on Latin American affairs and as a speechwriter during his tenure in the White House. In February 1961, Schlesinger was first told of the "Cuba operation," which would eventually become the Bay of Pigs Invasion. He opposed the plan in a memorandum to the president: "at one stroke you would dissipate all the extraordinary good will which has been rising toward the new Administration through the world. It would fix a malevolent image of the new Administration in the minds of millions." He, however, suggested, During the Cabinet deliberations, he "shrank into a chair at the far end of the table and listened in silence" as the Joint Chiefs and CIA representatives lobbied the president for an invasion. Along with his friend, Senator William Fulbright, Schlesinger sent several memos to the president opposing the strike; however, during the meetings, he held back his opinion, reluctant to undermine the President's desire for a unanimous decision. Following the overt failure of the invasion, Schlesinger later lamented, "In the months after the Bay of Pigs, I bitterly reproached myself for having kept so silent during those crucial discussions in the cabinet room. ... I can only explain my failure to do more than raise a few timid questions by reporting that one's impulse to blow the whistle on this nonsense was simply undone by the circumstances of the discussion." After the furor died down, Kennedy joked that Schlesinger "wrote me a memorandum that will look pretty good when he gets around to writing his book on my administration. Only he better not publish that memorandum while I'm still alive!" During the Cuban Missile Crisis, Schlesinger was not a member of the executive committee of the National Security Council (EXCOMM) but helped UN Ambassador Adlai Stevenson draft his presentation of the crisis to the UN Security Council. In October 1962, Schlesinger became afraid of "a tremendous advantage", which "all-out Soviet commitment to cybernetics" would provide the Soviets. Schlesinger further warned that "by 1970 the USSR may have a radically new production technology, involving total enterprises or complexes of industries, managed by closed-loop, feedback control employing self-teaching computers". The cause was a pre-vision of an algorithmic governance of economy by an internet-like computer network authored by Soviet scientists, particularly Alexander Kharkevich. After President Kennedy was assassinated on November 22, 1963, Schlesinger resigned his position