The Obama administration has run out of patience with Iraq’s Army. On Sunday, Secretary of Defense Ashton Carter appeared on CNN’s “State of the Union” to discuss the recent fall of Ramadi, one of Iraq’s major cities, to ISIS. Despite possessing substantial advantages in both numbers and equipment, he said, the Iraqi military was unable to prevent ISIS forces from capturing the city.

“That says to me and, I think, to most of us, that we have an issue with the will of the Iraqis to fight ISIL and defend themselves.”

Carter’s frustrations are shared by his boss. When asked about the war against ISIS in a recent interview with The Atlantic’s Jeffrey Goldberg, President Obama said that “if the Iraqis are not willing to fight for the security of their country, then we cannot do it for them.”

It’s easy to see why Washington is unhappy with Baghdad. In the eight years the U.S. formally occupied Iraq, the U.S. invested $25 billion in training and equipping the country’s armed forces before withdrawing in 2011. To this day, a much smaller number of American soldiers remain in the country in order to train Iraqi soldiers.

Despite these efforts, the Iraqi military is in pretty bad shape. Given the prevalence of desertion, it’s impossible to say with any reasonable certainty how many soldiers are actually serving—estimates vary from 50,000 to 140,000. Last summer, a group of several hundred ISIS fighters routed nearly 30,000 Iraqi troops tasked with defending Mosul, the country’s second-largest city, as many soldiers abandoned their uniforms and melted back into the population. Even the military’s few success stories come with major caveats. Tikrit, which Iraqi troops recaptured from ISIS in March, remains completely empty three months later.