A Honduran man reportedly in the United States illegally has been sentenced for having sexual contact with a child in Wichita Falls.

Jose Raul Ramos-Martinez, 36, pleaded guilty Thursday to one count of indecency with a child by sexual contact – a second-degree felony.

Per a plea agreement, Ramos-Martinez was given three years in prison with a credit of 1,004 days served. He faced up to 20 years behind bars.

He has remained in the Wichita County Jail since his arrest on April 26, 2016.

A second charge of first-degree felony aggravated sexual assault of a child was dismissed by prosecutors.

The jail's online inmate roster states that Ramos-Martinez was also being detained by the U.S. Immigration and Customs Enforcement.

Ramos-Martinez will have to register as a sex offender in the U.S.

According to court documents:

On April 22, 2016, Dallas police detectives contacted the Wichita Falls Police Department about a possible sexual assault of a 7-year-old girl.

She made an initial outcry to an elementary school official in Dallas.

The girl was forensically interviewed at the Dallas Child Advocacy Center.

She disclosed to the interviewer that Ramos-Martinez had engaged in sexual contact with her while staying in a motel room within the Wichita Falls city limits.

The girl described seeing a green sign outside the motel that said "Wichita Falls" on it.

She claimed Ramos-Martinez would grab her and bounce her up and down in his lap while both were fully clothed, causing sexual contact through their clothing.

The girl compared it to an adult holding a baby underneath their arms and raising them up and down in the air.

The Dallas detective told Wichita Falls police that Ramos-Martinez was in the U.S. illegally and was originally from Honduras. She believed Ramos-Martinez would be a flight risk.

WFPD detectives contacted Ramos-Martinez, who admitted to staying in a Wichita Falls motel while working in town with the girl's father sometime in 2015. He said the girl was staying with her father at the motel during the time they worked.

The girl's father also confirmed that they worked together within the Wichita Falls city limits about a year to 18 months before the outcry was made.