Commuters heading home from work were delayed on Wednesday after a man allegedly laid down and went to sleep on the tracks between the Back Bay Commuter Rail Station and South Station, forcing workers to shut down the trains for thirty minutes until he was safely removed.

According to MBTA Transit Police, officers arrested Edward Leahy, 53, Boston, for trespassing after he chose to take a nap 100 yards north of Track 1 at Back Bay Station.

Officers said Leahy did not provide an explanation to why he decided to take a snooze in such a dangerous area, and denied wanting to hurt himself, according to police.

“Unfortunately hundreds of MBTA commuters as well as Amtrak passengers were delayed for about a half hour during rush hour while Transit Police searched the area,” according to a police report.

Officers said the area where Leahy was found sleeping is clearly marked with “No Trespassing” and “Danger High Voltage” signage.

Leahy is scheduled to appear in Boston Municipal Court for his arraignment sometime Thursday.

Leahy’s actions weren’t the only commotion at South Station to cause a stir on Wednesday around rush hour.

According to reports, more than two dozen people were trapped inside of an elevator at the historic transportation hub.

Emergency personel responded to the scene, where customers had allegedly been trapped for up to 26 minutes inside the elevator.

According to Boston Fire Fighters, the elevator got stuck because it was overcrowded. An MBTA spokesman said none of the customers requested medical attention once they were freed from the elevator.

J.S. Campbell Captured the scene at South Station, when emergency workers arrived to help.