PITTSBURGH (KDKA) — Officials rescued a man who was working on scaffolding 40 feet in the air and passed out.

The police said the man had a medical episode on Friday.

(Photo Credit: KDKA)

Responders rushed to the 1300 block of North Franklin Avenue to save the man, who was doing masonry work between two buildings.

Crews had to use a pulley system to get the man down.

He was taken to the hospital and is expected to be ok.