HOUSTON (AP) — A man who led police on a nearly 20-mile chase through Houston was taken into custody only after dancing for a time once he stepped out of his car.

The unidentified suspect came to a stop early Thursday before striking spike strips police had laid across Interstate 45.

He eventually complied with police orders to step out of his car but rather than lay on the ground, the man began a dance with arms above his head. The episode concluded when a police dog attacked him.

Police Lt. Larry Crowson says officers were concerned the man might try to flee into traffic, so they unleashed the dog.

Crowson says investigators will determine whether the man was under the influence.

The suspect has been charged with evading arrest.