Since the 1963 Sino-Pakistan Agreement, the Pakistani military has had close relations with China, working jointly to develop the JF-17, the K-8, and various weapons systems. China was the second-largest foreign supplier of military equipment to Pakistan behind the United States. Both nations also cooperate on the development of their nuclear and space technology programs. The Chinese People's Liberation Army and Pakistan Armed Forces maintain a regular schedule for joint military exercises. Alongside this, the Pakistani military also maintains close relations with the United States, which gave Pakistan major non-NATO ally status in 2004. As such, Pakistan procures the bulk of its military equipment from China, the United States and its own domestic suppliers.