Therefore, people travelling from the Dubrovnik exclave to mainland Croatia must currently pass through two border checks in the space of 9 kilometres (5.6 mi). Should Croatia join the Schengen Area in future (which it is in theory bound to do in accordance with the conditions of its accession to the European Union), checks would be considerably more stringent and time-consuming, as the Schengen Borders Code requires checks not only when entering the Schengen area, but also when exiting it. Thus, someone travelling from Dubrovnik to mainland Croatia would undergo three distinct border checks: a Croatian (Schengen) exit check, a Bosnian-Herzegovinian entry check, and a Croatian (Schengen) entry check.