“You can’t just keep on yelling at them,” Obama said, according to the Associated Press. “You can’t refuse to meet because that might compromise the purity of your position.”

The president added that it can sometimes be better to “take half a loaf,” rather than be too rigid and risk making no progress.

Obama cited advocates for same-sex marriage, saying they effectively convinced him on the issue.