Changed KD checker a bit