Minor refactoring in UpdateNeighbors()