The treatment has received lots of criticism from LGBTQ rights groups.