As part of its national security and intelligence functions, the RCMP infiltrated ethnic or political groups considered to be dangerous to Canada. This included the Communist Party of Canada, but also a variety of minority cultural and nationalist groups. The force was also deeply involved in immigration matters, and especially deportations of suspected radicals. They were especially concerned with Ukrainian groups, both nationalist and socialist. The Chinese community was also targeted because of disproportionate links to opium dens. Historians estimate fully two percent of the Chinese community was deported between 1923 and 1932, largely under the provisions of the "Opium and Narcotics Drugs Act". Besides the RCMP's new responsibilities in intelligence, drugs enforcement, and immigration, the force also assisted numerous other federal agencies with tasks such as enforcing attendance of Indigenous children at schools within the Canadian Indian residential school system schools, designed to assimilate them into the dominant Canadian culture.