Pakistan faced many difficulties after its inception, including choosing a capital, unfair boundary distribution that gave Muslim majority areas to India, dealing with refugees from violence in India, disputes over division of military/financial assets and water resources, and the Kashmir dispute. Other problems included constitutional issues, and India's annexation of the princely states of Junagadh and Hyderabad against the rulers' wishes to join Pakistan. The founding leaders worked to address these challenges and establish a functioning government, but many issues, such as Kashmir, remained unresolved.