Handling potentially dangerous situations on the road