With working nearest neighbor method