Added avg distance