Where did final authority over the military lie?