Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

Two U.S. pilots were freed on bail Monday in a Scottish court after they were arrested as they were preparing to fly from Scotland to New Jersey while allegedly under the influence of alcohol, court officials told NBC News.

The men — identified in court documents as United Airlines pilots Carlos Roberto Licona, 46, of Humble, Texas, and Paul Brady Grebenc, 35, of Columbus, Miss. — appeared in Paisley Sheriff Court on charges that they violated a section of Britain's Railways and Transport Safety Act that says pilot can't exceed a blood-alcohol level of .02.

The pilots were arrested Saturday morning as they tried to check in at Glasgow Airport. Authorities wouldn't say exactly how much alcohol was registered in their systems.

Related: 2 United Airlines Pilots Arrested in Scotland on Alcohol Charges Before Flight to N.J.

A spokesman for the Crown Office and Procurator Fiscal Service confirmed that neither pilot entered a plea and that both have been released on bail. A second court date is pending.

United Airlines pilots Paul Brady Grebenc, left, and Carlos Roberto Licona leave Paisley Sheriff Court in Glasgow after being freed on bail Monday. Andy Buchanan / AFP - Getty Images

The flight, destined for Newark International Airport with 141 passengers aboard, was supposed to have departed at 9 a.m. (4 a.m. ET) Saturday, but it didn't take off until 6:45 p.m. after the airline secured a replacement crew, Erin Benson, a spokeswoman for United Airlines, told NBC News. It landed at Newark on Saturday night.

Benson said the pilots have been removed from service and flying duties. The airline is cooperating with the investigation and is conducting its own, she said.