MAYWOOD, Ill. (CBS) — A man from west suburban Elmwood Park is charged with trying to solicit sex with what he thought was a 12-year-old girl.

Cook County Sheriff’s police executed a sting against Louis Kostelaz, 54, of the 2100 block of 76th Avenue in Elmwood Park. He was charged with one count of felony indecent solicitation of a child.

An undercover sheriff’s investigator found Kostelaz in an AOL chat room in April, using the screen name “louadsl.” He struck up a conversation with the undercover officer, thinking he was communicating with a 12-year-old girl.

He kept talking to the fictional 12-year-old girl for two months, during which he repeatedly tried to set up a meeting where she would perform sex acts on him. He said he would teach her how to perform the acts since she had never done so before.

They also spoke by phone several times, sheriff’s police said.

This past Thursday, Kostelaz conducted the supposed girl again and asked if he could come over and engage in sex acts with her. The undercover officer posing as the girl agreed to meet Kostelaz at a predetermined location, and when he arrived, he was arrested on the spot.

Bond for Kostelaz was set at $50,000 at the Maybrook Courthouse in Maywood this past Saturday. He is due back for a preliminary hearing July 1.