An intoxicated man on Friday was able to ride his bicycle through the front gate of Spruce Creek High School while carrying a knife in his pocket, enter the school building and sit in a classroom with students, all before a deputy caught him, Volusia County records show.

Derek Marlowe, 51, was arrested nearly 20 minutes after entering the Port Orange school. The Volusia County Sheriff’s Department released body camera footage from arresting deputy Justin Lococo Monday. Marlowe told Lococo he was “testing the system” and the school’s security.

“This is no good,” Lococo said in the video. “How did ... did anybody see him get on campus?”

School employees are heard saying he rode right in through the front gate.

According to Marlowe’s arrest report, Shawn Butler, a campus advisor, was checking in faculty and students when Marlowe rode through the bus and faculty entrance at 8:37 a.m. Instead of radioing on-campus faculty, Butler called another advisor, Michele Passomante, on his cell phone to inform her of a suspicious person. Butler then watched as Marlowe entered the school through the student entrance.

Passomante was not on campus at the time. When Passomante arrived on campus, she was able to notify other faculty that Marlowe had entered the building and started to look for him.

Meanwhile, Marlowe lingered through the halls while class was in session, then entered the locked classroom of Charles Brinkerhoff when a student who went to the bathroom didn’t close the door all the way, the arrest report said.

Brinkerhoff told Lococo he watched Marlowe enter the class where he “perceived him as someone he knew.” Marlowe took an empty seat and started asking about pictures on the wall. That, Brinkerhoff said, is when he realized Marlowe was an intruder and activated an emergency button. Marlowe left the class and continued to wander the halls until assistant principal Alan Canetti and school guardian David Savitski ran into him.

Lococo was then able to place Marlowe under arrest at 8:55 a.m., nearly 20 minutes after he entered the campus. A knife was found in his pocket.

Marlowe can be heard rambling on the body cam video, varying his story from telling Lococo he knew students and taught them, to saying he was following children he knew to say hello and stating that he was testing the school’s security.

The Volusia County School District has not announced any disciplinary action, but the Sheriff’s Department said the “multiple security lapses” are being investigated. The school district is planning a Wednesday morning news conference in Daytona Beach.

Marlowe faces charges of trespassing on school grounds, disorderly conduct and disrupting a school function.

According to the Florida Department of Corrections, Marlowe has served two stints in prison, one for a felony DUI charge and one for battery. He also has a number of arrests in Volusia County.

The school district did not respond to a request for comment.