This led to the development of a Māori protest movement which in turn led to greater recognition of the Treaty of Waitangi in the late 20th century. In the 1980s the economy was largely deregulated and a number of socially liberal policies, such as decriminalisation of homosexuality, were put in place. Foreign policy, which had previously consisted mostly of following Britain or the United States, became more independent.