Added nearest neighbour randomization