Added distance parameter check/warning