Nearest neighbour noise detector added.