Different avoidance algorithm