As the military position of the CSM continued to decline in 1977, Malloum's political overtures to the rebel groups and leaders became increasingly flexible. In September Malloum and Habré met in Khartoum to begin negotiations on a formal alliance. Their efforts culminated in a carefully drafted agreement, the Fundamental Charter, which formed the basis of the National Union Government of August 1978. Malloum was named president of the new government, while Habré, as prime minister, became the first significant insurgent figure to hold an executive position in a postcolonial government.