Added travel-limit safety net to beam finding function.