A man who witnesses say was jumping on and trying to do somersaults on cars on the 10 Freeway in Fontana suffered minor injuries and was detained Wednesday, according to the California Highway Patrol.

The trouble was reported about 7 a.m. on the eastbound lanes west of Cypress Avenue, the CHP said in a news release.

A witness reported to the California Highway Patrol that the man had tried to do a somersault over the hood of his vehicle and that people were holding the man down, but he was again trying to get into lanes to jump on more cars, according to a CHP incident log.

When officers arrived, Cory Tremaine Simmons of Rialto, whose age was not released, was standing next to a guardrail on the right shoulder, the release said. As officers tried to talk to him, “he unexpectedly began running toward traffic.”

Officers tackled him, and he told them he wanted to hurt himself, the release said.

Officials said Simmons suffered scratches. He was taken to a hospital for a 72-hour mental health evaluation.