Near by distance

You can now configure the distance. The bit with units doesn't work, so we've commented it out for now, so that others can see the code easily.