The passengers can plan ahead, code works