Who initially had military command?