Mine based on distance