PORT REPUBLIC, N.J. — An elementary school choir teacher accused of sexually assaulting a student twice a week for the past three years will remain jailed until his trial.

A judge issued the ruling Wednesday during a bail hearing for Brian McSee. The judge said the 53-year-old Port Republic man was a flight risk and a community threat.

Citing his lack of a criminal record, McSee’s lawyer sought to have him freed but be electronically monitored and barred from having contact with the alleged victim.

McSee faces charges of aggravated sexual assault, official misconduct, criminal sexual contact and child endangerment. He was the seventh- and eighth-grade choir teacher at Port Republic Elementary School and choir director at St. Paul’s United Methodist Church, where the child’s family attends services.