Fixed avoidance algorithm