Adding nearest neighbour calculations.