Adding code for K distant nodes