American Airline flight AA105 declared an emergency while still flying over England, and diverted its course to head back to London’s Heathrow Airport. The emergency was reportedly caused by smoke being seen in the cockpit.

The emergency was declared around 12:00 p.m. Eastern Time while American Airlines flight 105 was near the town of Swindon, England.

Flight American Airlines #AA105 from #London to New York has declared an emergency and is diverting back to #LHRpic.twitter.com/8P5WKcaDQ8 — Flight Info & Alerts (@flightmayday) July 12, 2016

The plane safely landed at Heathrow Airport at 12:30 p.m. ET, according to radar.

The emergency was declared because of a mechanical issue that caused smoke to come out in the plane’s cockpit. Fire trucks met the plane on the ground when it landed.