Included log option for distances