SPRINGBORO (AP) — A judge has ordered a high-achieving 17-year-old boy accused of breaking into his high school to cheat on a test remain in custody at a southwest Ohio juvenile detention center.

WLWT-TV reports the teen appeared in Warren County Juvenile Court on Friday where Judge Joseph Kirby ordered him detained despite arguments from his attorney that the teen has a 3.4 grade point average and is enrolled in honors and advanced placement courses.

Police say the teen twice broke into Springboro High School early Thursday and was escorted out of the building by custodians both times.

The school was closed Friday while police conducted a security sweep.

The teen’s attorney says Friday was the first time his client has missed a day of high school.