President Obama spoke at a memorial service for five fallen police officers in Dallas, calling for unity and arguing that the country is not as divided as it seems.

“The people of Dallas, people across the country are suffering,” the president said.

"We see all this and it's hard not to think, sometimes, that the center won't hold and that things could get worse," he said. "I understand. I understand how Americans are feeling. But Dallas, I'm here to say we must reject such despair. I'm here to insist that we are not as divided as we seem, and I know that because I know America. I know how far we've come against impossible odds."

Obama said that the five officers who were killed died upholding the constitutional rights of the country by protecting a peaceful protest, calling them not soldiers, but "public servants."

He continued to praise the Dallas officers as "professionals" for doing their job even though they may have "profoundly disagreed" with some of the signs, slogans or chants being used by the protesters.

Obama said that in the aftermath of the attacks, the country has seen Dallas Mayor Rawlings and Police Chief Brown, a white man and a black man, working together not just to restore order but to unify the city with strength, grace and wisdom.

"I've seen how inadequate words can be in bringing about lasting change," Obama said. "I've seen how inadequate my own words have been."

So, he said he was reminded by a passage in John's Gospel: "Let us live not with words or speech, but with actions and in truth."

Obama said that the country would need to take action and "be honest with ourselves" if it's to sustain unity.

"We know that the overwhelming majority of police officers do an incredibly hard and dangerous job fairly," he said. "They deserve our respect and not our scorn."