The Air Force failed to enter Texas shooter Devin Kelley’s criminal record into a national criminal database which would have potentially prevented him from being able to purchase firearms.

In response, the service will conduct a review to determine why Texas church shooter Devin Kelley’s criminal record was not entered into the National Criminal Information Center (NICS) database, according to Air Force spokesperson Ann Stefanek. Kelley was convicted by a general court-martial on two charges of domestic assault against his wife and step-son, which legally would have barred him from purchasing firearms. He spent 12 months in prison at Naval Consolidated Brig Miramar in California, after which he was reduced to the Air Force’s lowest rank and given a “Bad Conduct Discharge” in 2014.

“Initial information indicates that [Kelley’s] domestic violence offense was not entered into the National Criminal Information Center database by the Holloman Air Force Base of Special Investigations,” said Stepanek in a statement provided to Circa.

Kelley served in logistics readiness at Holloman Air Force Base in New Mexico from 2010 to 2014. According to his court-martial documentation, Kelley hit, kicked and choked his wife and struck his step son with enough “force to likely produce death or grievous bodily harm.” You can read the entire court-martial below.

Kelley Court-Martial

In addition to the review of Kelley’s case, Secretary of the Air Force Heather Wilson and Air Force Chief of Staff Gen. David Goldfein have ordered the service perform a “comprehensive review of Air Force databases to ensure records in other cases have been reported correctly.” The Department of Defense Inspector General will also work in concert with the Air Force in the investigation, according to Defense Press Operations Deputy Director (acting) Mark Wright.

The NICS system is a database used by 30 U.S. states, including Texas, to conduct background checks on would-be gun purchasers. There are several disqualifying factors in the check, including charges of domestic abuse in any court against the purchaser.