A Baptist minister in Texas who came to national attention in 2016 when he praised the gunman who killed 49 people at a gay nightclub in Orlando, Florida, resigned from his ministry last week after allegedly using drugs, gambling and paying for sex with prostitutes.

Donnie Romero, who founded the Stedfast Baptist Church in Fort Worth in 2014, told congregants at a church meeting on Jan. 2 that he had not “been ruling my house well.”

“I have been a terrible husband and father,” Romero said, according to video of the meeting that was posted to the church’s official YouTube channel. “This is the best decision — for my family and my church — to make.”

Romero did not elaborate on his alleged impropriety at that meeting, which was largely run by another pastor, Steven L. Anderson. Anderson told congregants that “the lord says” Romero was “disqualified” to lead them.

Later, in a video he posted to YouTube, Anderson expanded on what he called the pastor’s “major sins.”

“Basically, the major sin involved was being with prostitutes, and then there were also marijuana and gambling that were also discovered,” Anderson said.

He added that no one else at the church had been “tainted with any of this or were involved with any of this.”

Anderson did not specify the gender of the prostitutes or provide a timeline for the infractions. Neither Anderson, Romero nor the new pastor of Stedfast Baptist Church, Jonathan Shelley, responded to messages seeking comment on Tuesday.

Stedfast Baptist Church is part of a nationwide network of almost 30 independent Baptist churches associated with Anderson, who founded Faithful Word Baptist Church in Tempe, Arizona.

He gained notoriety in 2009 for saying in a sermon that he had prayed for the death of President Barack Obama, and was criticized by the Anti-Defamation League in 2014 for what it called his “history of anti-Semitism.”

Both churches are vehemently opposed to homosexuality and have been classified as hate groups by the Southern Poverty Law Center, which tracks extremism in the United States. The website of Faithful Word Baptist Church describes homosexuality as “a sin and an abomination which God punishes with the death penalty.”

“This network is not coming out of nowhere, it’s not like it’s one little church in one little place with some guy who liked to go to prostitutes,” said Heidi Beirich, a researcher at the law center. “It’s a network of congregations across the country with this guy who preaches a — I don’t want to call it a theology because it is so hateful, but who preaches that gay people are destroying the country.”

Romero and Anderson were among a small group of extreme Christian conservatives who were widely criticized in 2016 for praising Omar Mateen, the gunman who killed 49 people that year at Pulse nightclub, a center of gay night life in Orlando. Mateen said at the time that he was acting in the name of the Islamic State.

More than 50 additional people were injured in the attack. In a sermon shortly after the shooting, Romero said he hoped they would die, too.

In the sermon, which was posted to YouTube, Romero told congregants that gay people were all pedophiles and that he hoped the injured would die of their wounds “so that they don’t get any more opportunity to go out and hurt little children.”

“I’ll pray to God that God will finish the job that that man started,” he said, referring to Mateen. The video of the sermon has since been removed from YouTube.

This article originally appeared in The New York Times.