Use kwargs to pass distance