Jean Frederic Godoc, 29, of Paris, France, pleaded guilty to both charges, the U.S. Attorney’s office said. Godoc faces a statutory maximum of 30 years in prison for the crimes.

Between September 1, 2011, and December 22, 2011, a member of the FBI’s Child Exploitation Task Force, who was operating undercover, entered a website which is frequented by those who have a sexual interest in children. Godoc and the undercover officer communicated online over the three-month period, and the defendant indicated an interest in traveling to the United States and having a sexual relationship with an underage girl.

In arranging the visit, Godoc offered to bring presents for the girl and her younger sister, the Attorney’s office said.

In December, Godoc boarded a plane in Paris and traveled to the United States. Once he arrived, bearing his computer and the promised gifts, he was arrested.