An airline pilot has admitted preparing to fly a passenger jet while more than twice the legal alcohol limit.
Paul Grebenc, 35, was due to fly as first officer on a United Airlines flight from Glasgow Airport to Newark, New Jersey, on August 27 last year when concerns were raised about his fitness to fly.
A blood test carried out later that day found he had 42 microgrammes of alcohol in 100 millilitres of blood, more than twice the legal limit of 20mcg.
Grebenc, a former US Air Force pilot who is still a reservist, pleaded guilty to the offence when he appeared at Paisley Sheriff Court on Thursday.
The court heard that on the morning of August 27, Grebenc and his United Airlines colleagues were brought to Glasgow Airport from the Hilton Hotel in Glasgow, where they had spent the night, having flown from the US to Scotland the previous day.
They were due to fly a Boeing 757 to Newark with take-off scheduled for 9am.
As they passed through the staff search area, security staff smelled alcohol on the breath of the other First Officer, Carlos Licona, and raised the alarm.
Police were contacted and went to the departure gate, where Licona and Grebenc were removed from the flight.
Fiscal Depute Scot Dignan said: "Police did not go on board the aircraft as they wanted to be discreet and not alarm passengers.
"Grebenc was asked to disembark with Licona as police also had suspicions regarding him.
"He was taken to a quieter spot. At about 9.30am he was asked to provide a specimen of breath for analysis which proved positive and he was taken in a marked police vehicle to Govan police station."
Later that day, he provided a blood sample for analysis, which showed he was more than twice the legal limit.
Licona was sentenced to ten months in prison earlier this month after he admitted boarding a flight while under the influence of alcohol.
The plane took off later that day with a new crew and 141 passengers on board.
David McKie, defending Grebenc, said his client was extremely remorseful.
He said: "He has asked me to express his remorse and apologises to the court and passengers for his irresponsibility and what was a significant misjudgment on his part.
"He takes full responsibility for his actions."
Mr McKie told that court Grebenc is a former US Air Force pilot who flew an aircraft delivering fuel, including to war zones such as Iraq and Afghanistan, and carried out mid-air fuel transfers.
Alongside his commercial work with United Airlines, he still serves as a reservist with the US Air Force and has been involved in training young pilots.
His wife is also a pilot with the US Air Force and the couple, who live on an air base in Mississippi, have two children aged two and four.
Mr McKie told the court his client was under pressure at the time of the incident as there had been a recent family argument while two weeks previously doctors had found a shadow on his son's lung which they feared might be cancerous, and the family had to wait until September to find out the prognosis.
However, he said Grebenc recognised the seriousness of his actions.
He said: "He recognises that he ought to have stopped drinking at an earlier point that evening and his failure to do so will have catastrophic consequences for him, his career and for his family."
Mr McKie explained his client has been placed on the HIMS (Human Intervention Motivation Study) programme by his employers in conjunction with the federal aviation authority. The programme is geared towards rehabilitation.
Grebenc is due to be sentenced later.
A United Airlines spokesman said: "We hold all of our employees to the highest standards. This pilot was immediately removed from service and his flying duties in August 2016."