The man who was caught surfing the web late at night inside the Grayson County Courthouse now has a court date.

Joshua Barrier has been indicted on eight counts of online solicitation of a minor. The indictments are formal charges and are not an indication of guilt.

Barrier was in the 15h state District Court Thursday with his attorney John Hunter Smith. However, their setting for a plea conference was passed and the case was set for trial on June 3.

The case began in April 2017 when Barrier, then 37, was found in the Grayson County Law Library on the second floor of the Grayson County Courthouse by staffers who did not know he had been given permission to be there by the Grayson County law librarian.

The librarian said she had given Barrier permission to be in the library after hours on several occasions because he was working on legal research. While investigating the incident, investigators reviewed a file box and paperwork that Barrier had with him when he was found in the library after hours. They found a copy of a social security card of another individual and a driver’s license from yet another individual, neither of which were Barrier.

Barrier was arrested when parents of a Whitesboro teen said he had been exchanging inappropriate messages with their child via the computer. Continued investigation, authorities said, led them to believe Barrier had conducted those conversations with the teen while at the Grayson County Law Library.

The law librarian was later fired from her job over the incident.