A 48-year-old man faces felony charges in connection with allegations that he threatened a Los Angeles County Superior Court judge.

Miles Basurto was arrested Friday on suspicion of threatening an elected official, the Los Angeles County Sheriff’s Department told NBC4 Investigates. The agency’s Security Operations Unit learned of a threat to the judge, which led investigators to Basurto, the sheriff’s department said.

He was later charged with felony counts of threatening state officials or judges, threatening a public officer, criminal threats and stalking with a temporary restraining order in effect.

A court date was scheduled for Tuesday. It was not immediately clear whether Basurto has an attorney.

Details about the threats were not immediately available.