During the almost two-month interval prior to the declaration of war, the two service staffs developed a two-stage operational plan against China. The army's 5th Division would land at Chemulpo to prevent a Chinese advance in Korea while the navy would engage the Beiyang fleet in a decisive battle in order to secure control of the seas. If the navy defeated the Chinese fleet decisively and secured command of the seas, the larger part of the army would undertake immediate landings on the coast between Shanhaiguan and Tientsin, and advance to the Zhili plain in order to defeat the main Chinese forces and bring the war to a swift conclusion. If neither side gained control of the sea and supremacy, the army would concentrate on the occupation of Korea and exclude Chinese influence there. Lastly, if the navy was defeated and consequently lost command of the sea, Japanese forces in Korea would be ordered to hang on and fight a rearguard action while the bulk of the army would remain in Japan in preparation to repel a Chinese invasion. This worst-case scenario also foresaw attempts to rescue the beleaguered 5th Division in Korea while simultaneously strengthening homeland defenses. The army's contingency plans which were both offensive and defensive, depended on the outcome of the naval operations.