LOS ANGELES (AP) — Los Angeles authorities say a man spent about three hours 200 feet up a construction crane in Hollywood before surrendering.

The man climbed the crane on Hollywood Boulevard Sunday afternoon and finally was taken into custody after 5 p.m.

Wearing only shorts, the man at times dangled from cables and wrapped himself in a large American flag that had been flying from one end of the crane.

Police Sgt. Jose Torres says the man was rambling, saying things that could not be understood and yelling at people who weren't there.

Torres says that once the man came down he was able to talk to him and learned that he has a 9-year-old daughter he hasn't seen in a while.

Paramedics took him to a hospital for evaluation.