The constitution also provides for the popular election of municipal and local officials, and the first-ever successful municipal elections took place on 24 July 2004. The National Assembly passed in June 2002 a series of decentralization bills. As a first step, administrative powers will be distributed among 265 communes (local councils); in later stages, regions and departments will be established as decentralized entities. A new electoral code was adopted to reflect the decentralization context. The country is currently divided into 8 regions, which are subdivided into 36 districts (departments). The chief administrator (governor) in each department is appointed by the government and functions primarily as the local agent of the central authorities.