Added distance option