The United Kingdom on Tuesday announced a ban on electronic devices in cabin baggage on flights from six countries. Passengers travelling from Turkey, Lebanon, Jordan, Egypt, Tunisia and Saudi Arabia will not be allowed to carry laptops, tablets, DVD players and cellphones larger than certain specified dimensions, reported BBC.

This follows a similar ban announced by the United States on Monday. The Donald Trump administration issued a circular banning electronic devices larger than cellphones on flights to and from a few countries. The decision was made even as Trump’s repeated efforts to close US borders to people from Muslim-majority countries have been thwarted multiple times by the country’s courts, which had also stayed his contentious travel ban orders in the past.

The UK administration said the decision, which will affect around 14 airlines, was made following discussions on aviation security. It called the ban “necessary, effective and proportionate”. “The additional security measures may cause some disruption for passengers and flights, and we understand the frustration that it will cause, but our top priority will always be to maintain the safety of British nationals,” a government spokesperson said.

An attempt to shoot down an airliner in Somalia last year, which was linked to a laptop, is believed to have triggered the move, BBC reported.