Awareness of dangers and optimized avoidance