Notes on setting distance, processing 'inf'