Searching neighbors updated and optimized.