Preclearance solves all that, with passengers using the time between checkin and boarding to take care of all the formalities ...