President Barack Obama said Monday the deaths of unarmed black men in Missouri and New York show that law enforcement needs to change practices to build trust in minority communities, as a White House task force called for independent investigations when police use deadly force.

Obama said last year’s deaths of Michael Brown in Ferguson, Mo., and Eric Garner in New York City exposed “deep-rooted frustration in many communities of color around the need for fair and just law enforcement.” He said a policing task force that he appointed found it is important for law enforcement to improve training, data collection and cooperation with the communities they cover.

“The moment is now for us to make these changes,” Obama said from the White House during a meeting with members of the task force, who worked for three months to develop the recommendations. “We have a great opportunity coming out of some great conflict and tragedy to really transform how we think about community law enforcement relations so that everybody feels safer and our law enforcement officers feel — rather than being embattled — feel fully supported. We need to seize that opportunity.”

The task force made 63 recommendations after holding seven public hearings across the country that included testimony from more than 100 people. The panel also met with leaders of groups advocating for the rights of blacks, Hispanics, Asians, veterans, gays, the disabled and others.

Obama said the task force found the need for more police training to reduce bias and help officers deal with stressful situations. He recognized a particularly controversial recommendation would be the need for independent investigations in fatal police shootings.

“The importance of making sure that there’s a sense of accountability when in fact law enforcement is involved in a deadly shooting is something that I think communities across the board are going to be considering,” Obama said.

Specifically, the task force recommended external independent criminal investigations and review by outside prosecutors when police use force that results in death or anyone dies in police custody, instead of the internal investigations that are the policy of some law enforcement agencies. The task force suggested either a multi-agency probe involving state and local investigators, referring an investigation to neighboring jurisdictions or the next-highest level of government. “But in order to restore and maintain trust, this independence is crucial,” the report said.

Bill Johnson, the executive director of the National Association of Police Organizations, said an outside investigation of a police-involved shooting may make sense in limited circumstances when a police department has few resources. But in the vast majority of cases, he said, it is unnecessary and perhaps even counterproductive.

“I think it helps to drive a wedge between a local police department and the community it serves — which is exactly contrary to what the intent of this police task force was supposed to be,” said Johnson, whose organization is an umbrella group of police unions. “I think it sends a message that your local police can’t be trusted.”