Changed method of mouse avoidance.