The Republican government acted to remove suspect generals from influential posts. Franco was sacked as chief of staff and transferred to command of the Canary Islands .  Manuel Goded Llopis was removed as inspector general and was made general of the Balearic Islands . Emilio Mola was moved from head of the Army of Africa to military commander of Pamplona in Navarre .  This, however, allowed Mola to direct the mainland uprising. General Jose Sanjurjo became the figurehead of the operation and helped reach an agreement with the Carlists.  Mola was chief planner and second in command.  José Antonio Primo de Rivera was put in prison in mid-March in order to restrict the Falange.  However, government actions were not as thorough as they might have been, and warnings by the Director of Security and other figures were not acted upon.