by the end of the decade it had fallen further to five, with just 3,500 personnel. In the late 1930s, as international tensions increased, the RAN was modernised and expanded, with the service receiving primacy of funding over the Army and Air Force during this time as Australia began to prepare for war. World War II Early in the Second World War, RAN ships again operated as part of Royal Navy formations, many serving with distinction in the Mediterranean, the Red Sea, the Persian Gulf, the Indian Ocean, and off the West African coast. Following the outbreak of the Pacific War and the virtual destruction of Allied naval forces in Southeast Asia, the RAN operated more independently, defending against Axis naval activity in Australian waters, or participating in United States Navy offensives. As the navy took on an even greater role, it was expanded significantly and at its height the RAN was the fourth-largest navy in the world, with 39,650 personnel operating 337 warships, but no active submarines. A total of 34 vessels were lost during the war, including three cruisers and four destroyers. Post war to present After the Second World War, the size of the RAN was again reduced, but it gained new capabilities with the acquisition of two aircraft carriers, Sydney and Melbourne. The RAN saw action in many Cold War–era conflicts in the Asia-Pacific region and operated alongside the Royal Navy and United States Navy off Korea, Malaysia, and Vietnam. Since the end of the Cold War, the RAN has been part of Coalition forces in the Persian Gulf and Indian Ocean, operating in support of Operation Slipper and undertaking counter piracy operations. It was also deployed in support of Australian peacekeeping operations in East Timor and the Solomon Islands. The high demand for personnel in the Second World War led to the establishment of the Women's Royal Australian Naval Service (WRANS) branch in 1942, where over 3,000 women served in shore-based positions. The WRANS was disbanded in 1947, but then re-established in 1951 during the Cold War. It was given permanent status in 1959, and the RAN was the final branch to integrate women in the Australian military in 1985. Structure Command structure The strategic command structure of the RAN was overhauled during the New Generation Navy changes. The RAN is commanded through Naval Headquarters (NHQ) in Canberra. NHQ is responsible for implementing policy decisions