Preparations before the war