Adds a distance check for sparrow.