A Texas man has confessed to raping a 3-year-old female relative, leading her to contract chlamydia and gonorrhea, court documents show.

Drevon Alexander Perkins, 26, of San Antonio, was arrested Tuesday after the girl’s mother noticed discharge in her diaper and took her to a hospital for observation. A doctor later confirmed she had been infected with two sexually transmitted diseases and a police investigation was launched, according to court records cited by the San Antonio Express-News.

Perkins later allegedly admitted during a polygraph test to raping the girl while he was high on drugs in January, telling investigators he attacked her at his apartment while her mother was working.

Perkins had previously been diagnosed with chlamydia and gonorrhea, court records show.

He remained in custody as of Thursday on $100,000 bond at the Bexar County Jail on a felony charge of super aggravated sexual assault of a child, jail records show. If convicted, Perkins faces a minimum of 25 years in prison, KTRK reports.

The alleged victim is Perkins’ relative, according to KSAT.