Canada's expenses were paid from two sources. The royal funds allotted to the colonies covered the largest share of the costs. The other source was domestic revenues derived from the royal domain, such as customs duties on imports and exports. Costs were high, because they included upkeep of the forts and other public buildings; salaries of the administrators, officers and soldiers; and contributions to the various religious communities to help maintain the hospitals and educational establishments. In fact, Canada's expenditures were higher than its revenues. This was especially true in the final years of the regime, when military spending was very high.