The men used the app to coax men into sharing their home addresses so they could barge in and rob them.

Last year, four men used Grindr to target gay men to rob them. On Monday, the last two of those men were sentenced to prison time.

According to the U.S. Department of Justice, Anthony Shelton, 20, and Cameron Ajiduah, 19, were sentenced to 20 and 15 years in prison respectively for charges of home invasion for violently robbing gay men in Texas. Two other defendants, Nigel Garrett, 21, and Chancler Encalade, 20, were previously sentenced to 15 years and 10 years, respectively.

“For each of the four home invasions, the defendants used Grindr, a social media dating platform for gay men, to falsely identify as a gay man and arrange to meet the victim at the victim’s home,” the Justice Department said in a press release. “Upon entering the victim’s home, the defendants assaulted the victim, restrained the victim with tape, and made derogatory statements about the victim being gay. The defendants possessed a firearm during each home invasion, and they stole the victim’s property, including his motor vehicle.”

The men were together charged in four separate similar home invasions in Plano, Frisco, and Aubrey, Texas. They all pleaded guilty to the crimes, which took place from January 17 through February 7, 2017.

“This case highlights the danger of the internet and specifically, online apps,” said U.S. Attorney Joseph D. Brown for the Eastern District of Texas. “In this case, the defendants misused the internet for sinister purposes in order to target an innocent man based on his sexual orientation, causing him bodily harm and damage to his property.”