Yield strategy based on KNN density working - some leaks, faults and lots of hacks.