/*Stage 2. Backbone Infrastructure Route Optimization (BIRO)  */
begin
 View topology tree;
if 𝐿 is in topology tree then
  Stop driving;
else
  Drive straight;
Algorithm 4: The BIRO algorithm.